<%-- 
    Document   : appel
    Created on : 8 déc. 2013, 12:28:09
    Author     : Izii Tom's
--%>

<%@page import="java.util.Hashtable"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="com.myapp.struts.modele.Etudiant"%>
<%@page import="com.myapp.struts.modele.Promotion"%>
<%@page import="com.myapp.struts.modele.EstAbsent"%>
<%@page import="com.myapp.struts.modele.Matiere"%>
<%@page import="com.myapp.struts.modele.Enseignant"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">


        <!-- Bootstrap core CSS -->
        <link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet">

        <!-- Custom styles for this template -->
        <link href="http://getbootstrap.com/examples/signin/signin.css" rel="stylesheet">

        <!-- Just for debugging purposes. Don't actually copy this line! -->
        <!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
        <style type="text/css"></style></head>
    <body>




        <jsp:useBean id="bd" class="com.myapp.struts.modele.QueryBD" scope="session"/>
        <div class="container">
            <div class="row">
                <div class="col-md-3"></div>
                <div class="col-md-6">
                    <%--<jsp:useBean id="utilisateur" scope="page" class=" com.jmd.test.struts.data.Utilisateur"/>--%>
                    <bean:define id="bdEtu" name="bd" property="promotion.etudiants"/>

                    <center>

                        <h2>Cours</h2>
                        <form method=POST action="AppelChoixAction.do">
                            <div class="row">
                            <div class="col-md-4"></div>
                            <div class="col-md-4">Matiere 
                                <p> <SELECT name="matiere" size="1">    
                                        <% for (int i = 0; i < bd.getPromotion().getMatieres().size(); i++) {
                                                out.print("<option>" + bd.getPromotion().getMatieres().get(i).getNom());
                                            }
                                        %>
                                    </SELECT></p> </div>
                                    <div class="col-md-4"></div>
                            </div>
                            <div class="col-md-4">Date <input type="date" class="form-control" required="" name="date" autofocus=""/></div>
                            <div class="col-md-4">Heure Début <input type="time" class="form-control" required="" name="heureDebut"/></div>
                            <div class="col-md-4">Heure Fin <input type="time" class="form-control" required="" name="heureFin"/><br></div>

                            <button class='btn btn-primary btn-lg btn-block' type='submit' value='Valider'>Valider</button>

                        </form>
                </div>
                <div class="col-md-3"></div></div>
    </body>
</html>
